package com.offcn.project.config;

import com.offcn.utils.OssTemplate;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: wzy
 * @Date: 2021/01/25/20:13
 * @Description:
 */
@Configuration
public class AppProjectConfig {

    @Bean
    @ConfigurationProperties(prefix = "oss") //加载配置文件中的oss属性
    public OssTemplate ossTemplate() {
        return new OssTemplate();
    }
}
